﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Globalization;
using SHRP.UI.Properties;
using System.Resources;
using System.ComponentModel;
using System.Threading;
using System.Reflection;

namespace SHRP.UI
{
    static class Program
    {
/// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            GlobalInit();
            Application.Run(new FrmMain());
        }

        private static void GlobalInit()
        {
            CultureInfo culture = Thread.CurrentThread.CurrentCulture;
            Resources.Culture = culture;
            //foreach (Control bt in Controls)
            //{

            //    if (bt.GetType().Name == "Button")
            //    {
            //        bt.Text = res.GetString(bt.Name);
            //    }
            //}
        }

    }
}
